package bz.ziro.kanbe.controller.mng.log;

import org.slim3.controller.Controller;
import org.slim3.controller.Navigation;
import org.slim3.datastore.Datastore;

import com.google.appengine.api.datastore.Key;

import bz.ziro.kanbe.util.KeyFactory;

/**
 * ログ削除
 * @author Administrator
 */
public class DeleteController extends Controller {

    @Override
    public Navigation run() {
        //データを検索
        String keyBuf = requestScope("logKey");
        Key key = KeyFactory.createLogKey(Long.valueOf(keyBuf));
        Datastore.delete(key);
        return null;
    }
}
